import React, {useState} from 'react';
import s from './style.module.css';
import Breadcrumb, { Item } from '../../../components/Breadcrumb';
import Info from './TaskInfo/info';
import TaskTable from './TaskInfo/taskTable'
import Label from '../../../components/Label';
import { Link } from 'react-router-dom';
import Select from '@knownsec/react-component/dist/Select'

export default function WeakTask() {
	const [refresh, setRefresh] = useState(0)
	return (
		<div className={s.taskMainContent}>
			<Breadcrumb>
				<Item key="job-manage" disabled>
					任务管理
				</Item>
				<Item key="web-task">
					Web安全监测
				</Item>
			</Breadcrumb>
			<div className={s.content}>
				<Label className={s.labelDetail}>概况</Label>
				<Info refresh={refresh} />
				<Label className={s.labelDetail}>任务列表</Label>
				<TaskTable setRefresh={setRefresh} />
			</div>
		</div>
	)
}
